# try:
#     num = int(input('请输入数字:'))
#     result = 1 / num
#     print(result)
# except Exception as e:
#     print(e)


try:
    num = int(input('请输入数字:'))
    result = 1/num
    print(result)

except:
    print('无效数字')
